<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改课程</title>
    <link rel="stylesheet" href="/static/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/css/dsb.css">
</head>
<body>

<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                    aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand one-pan-link-mark" href="/outlogin">退出登陆</a>
        </div>
    </div>
</nav>

<div class="container-fluid">
    <div class="row">
        <div class="col-sm-3 col-md-2 sidebar">
            <ul class="nav nav-sidebar">
                <li class=""><a href="/index" class="one-pan-link-mark">基本信息</a></li>
                <li class="active"><a href="/course" class="one-pan-link-mark">选课信息</a></li>
                <li class=""><a href="/mark" class="one-pan-link-mark">成绩信息</a></li>
                <li class=""><a href="/money" class="one-pan-link-mark">消费信息</a></li>
                <li class=""><a href="/book" class="one-pan-link-mark">图书借阅</a></li>
            </ul>
        </div>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <h2 class="sub-header">修改课程</h2>
            
            {% if error_message %}
            <div class="alert alert-danger">
                {{ error_message }}
            </div>
            {% endif %}
            
            <form method="post" action="/edit_course/{{ course.co_num }}/">
                <!-- <div class="form-group">
                    <label for="course_num">课程号</label>
                    <input type="text" class="form-control" id="course_num" value="{{ course.co_num }}" readonly>
                    <small class="form-text text-muted">课程号不可修改</small>
                </div> -->
                
                <div class="form-group">
                    <label for="course_name">课程名</label>
                    <input type="text" class="form-control" id="course_name" name="course_name" value="{{ course.co_name }}" placeholder="请输入课程名">
                </div>
                
                <div class="form-group">
                    <label for="course_teacher">任课教师</label>
                    <input type="text" class="form-control" id="course_teacher" name="course_teacher" value="{{ course.co_teacher }}" placeholder="请输入任课教师">
                </div>
                
                <div class="form-group">
                    <button type="submit" class="btn btn-primary">保存修改</button>
                    <a href="/course/" class="btn btn-default">取消</a>
                </div>
            </form>
        </div>
    </div>
</div>

</body>
</html> 